﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Content.master" AutoEventWireup="true"
    CodeFile="Users_view.aspx.cs" Inherits="Users_view" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
    <asp:Content ID="Content3" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">

      

        $(document).ready(function () {
        
            $("a#inline").fancybox({
                'hideOnContentClick': false,
                'hideOnOverlayClick': false
            });
          
            $(function () {
                // add drag and drop functionality to fancybox
                $("#fancybox-wrap").easydrag();
            });

        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="divPages">
        <img title="Create Users for CMS" id="img" alt="Create Users"
            src="images/Register.png" /><div class="HeaderText">
                User
                <asp:Literal ID="UsrTitle" runat="server" /></div>

          <div id="FramePicture">
          <div class="DownloadPicture" title="Download your picture" id="DownloadPicture" runat="server"><asp:LinkButton ID="Download" Width="20" Height="20" OnClick="BtnDownload_Click" runat="server" /></div>

          <asp:Panel ID="FancyUploadPanel" runat="server">
            <a id="inline" class="FancyPhoto" href="#data">
                <div class="PictureText" title="<%= PictureNameFull %>"><asp:Literal ID="UPL_NAME" runat="server" /></div>
                <div class="PictureBar"></div>
                <asp:Image ID="FancyPhoto" ToolTip="Click here to upload your picture" runat="server" CssClass="FancyPhoto" />
            </a>
            <div style="display: none;">
                <div id="data">
                    <div>
                        <asp:FileUpload ID="FuPhoto" CssClass="UploadPhoto" runat="server" />
                       <asp:Panel ID="FileNamePanel" runat="server">
                      </asp:Panel>
                    </div>
                    <asp:Button ID="ButtonUpload"  CssClass="Button" Text="Upload" runat="server"
                        OnClick="ButtonUpload_Click" />
                    <asp:Button ID="ButtonDelete"  CssClass="Button" Text="Delete" runat="server"
                        OnClick="ButtonDelete_Click" />
                </div>
            </div>
        </asp:Panel>
        </div>
        <div class="divPagesInner">
            <div class="divColumns">
                <asp:Label ID="LBL_USR_NAME" CssClass="lbl" runat="server" AssociatedControlID="USR_NAME"
                    Text="Username : <em>*</em>" />
                <asp:TextBox ID="USR_NAME" runat="server" CssClass="Details Required Username" />
            </div>
            <div class="divColumns">
                <asp:Label ID="LBL_USR_PASSWORD" CssClass="lbl" runat="server" AssociatedControlID="USR_PASSWORD"
                    Text="Password : <em>*</em>" />
                <asp:TextBox ID="USR_PASSWORD" TextMode="Password" runat="server" CssClass="Details  PasswordPolicy Password" />
            </div>
         
            <div class="divColumns">
                <asp:Label ID="LBL_USR_EMAIL" CssClass="lbl" runat="server" AssociatedControlID="USR_EMAIL"
                    Text="Email : <em>*</em>" />
                <asp:TextBox ID="USR_EMAIL" runat="server" CssClass="Details Required ValidEmail Email" />
            </div>

            <div class="divPagesInnerInner">
                <asp:Panel runat="server" CssClass="divColumns" ID="MasterUserPanel">
                    <asp:Label ID="LBL_USR_MASTERUSER" CssClass="lbl" runat="server">MasterUser</asp:Label>
                    <asp:CheckBox ID="USR_MASTERUSER" runat="server" Checked="false" />
                </asp:Panel>
                <div class="divColumns">
                    <asp:Label ID="LBL_USR_ACTIVE" runat="server" CssClass="lbl">Active</asp:Label>
                    <asp:CheckBox ID="USR_ACTIVE" runat="server" Checked="true" />
                </div>
            </div>

        </div>
        <div class="divButton">
            <asp:Button ID="BtnSave" UseSubmitBehavior="false" type="submit" data-role="button"
                CssClass="Button" runat="server" Text="Save" OnClick="BtnSubmit_Click" />
            <asp:Button ID="BtnCancel" UseSubmitBehavior="false" type="submit" data-role="button"
                CssClass="Button" runat="server" Text="Cancel" OnClick="BtnCancel_Click" />
        </div>
    </div>
</asp:Content>
